package com.yunfeng.aolin.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.yunfeng.aolin.entity.PurchaseMaterials;
import com.yunfeng.common.util.Page;

public interface PurchaseMaterialsService {
	PurchaseMaterials get(Long id);

	void saveOrUpdate(PurchaseMaterials purchaseMaterials);

	void delete(Long id);

	List<PurchaseMaterials> findAll();

	List<PurchaseMaterials> findAll(Page page);

	List<PurchaseMaterials> findByMingcheng(Page page, String mingcheng);

	List<PurchaseMaterials> findByExample(
			Specification<PurchaseMaterials> specification, Page page);
}
